<%@ page contentType="text/html;charset=UTF-8" language="java"  pageEncoding="utf-8"%>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>登录</title>
    <style>
        @import url(css/login.css);
    </style>



</head>
<body>
<form action="LoginServlet" class="box" onsubmit="return validateCode()">
    <h2>登录</h2>
    <input type="hidden"  name="flag" value="1"/>
    <div class="input-box">
        <label>账号</label>
        <input type="text" name="user">
    </div>
    <div class="input-box">
        <label>密码</label>
        <input type="password" name="password">
    </div>
    <br>
    <div class="yzm">
        <input type="text" id="code" class="yzm_code" placeholder="请输入验证码">
        <!-- <span id="code" class="yzm_pic" title="看不清，换一张"></span> -->
        <canvas id="check" height="35" width="100" class="yzm_pic" title="看不清，换一张">您的浏览器不支持canvas标签！</canvas>
    </div>

    <div class="btn-box">
        <a href="#">忘记密码？</a>
        <div>
            <button type="submit">登录</button>
            <button>注册</button>
        </div>

    </div>
</form>

<script src="js/checkCode.js"></script>

</body>
</html>

